<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>捕获组</title>
</head>
<body>
    <script>
        // () 将字符组合，所以 (go)+ 匹配 go, gogo, gogogo 等。 
        console.log('Gogogogo'.match(/(go)+/ig)) // ['Gogogogo']
    </script>
</body>
</html>